#include "MultiMedias.h"
#include <string>
#include <iostream>

using namespace std;

MultiMedias::MultiMedias(void)
{
	type = "";
	name = "";
	format = "";
	year = 0;
	
}


MultiMedias::~MultiMedias(void)
{
}

MultiMedias::MultiMedias(string t, string n, string g, int y)
{
	type = t;
	name = n;
	format = g;
	year = y;
}

void MultiMedias::WriteToConsole()
{
		cout << type << " | ";
		cout << name << " | ";
		cout << format << " | ";
		cout << year << " | " <<endl;
	
}

void MultiMedias::ReadFromConsole()
{
	cout << "Type: ";
	cin >> type;
	cout << "\nName: ";
	cin >> name;
	cout << "\nFormat: ";
	cin >> format;
	cout << "\nYear: ";
	cin >> year;
}